package com.yaj.mesif.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wei
 * @since 2021-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("TI_ORDER")
@ApiModel(value="TiOrder对象", description="")
public class TiOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "シーケンスNO")
    @TableId(value = "SEQ_NO", type = IdType.AUTO)
    private Long seqNo;

    @ApiModelProperty(value = "製造オーダ番号")
    @TableField("ORDERID")
    private String orderid;

    @ApiModelProperty(value = "製造オーダID")
    @TableField("ORDERKEYID")
    private BigDecimal orderkeyid;

    @ApiModelProperty(value = "製造オーダ摘要")
    @TableField("DESCRIPTION")
    private String description;

    @ApiModelProperty(value = "製造オーダ摘要2")
    @TableField("DESCRIPTION2")
    private String description2;

    @ApiModelProperty(value = "オーダ・リリース済日付")
    @TableField("RELEASEDATE")
    private Date releasedate;

    @ApiModelProperty(value = "区分タイプ")
    @TableField("JOBCODE")
    private BigDecimal jobcode;

    @ApiModelProperty(value = "会計区分")
    @TableField("CLASSCODE")
    private String classcode;

    @ApiModelProperty(value = "開始日")
    @TableField("SCHEDULEDSTARTDATE")
    private Date scheduledstartdate;

    @ApiModelProperty(value = "完了日")
    @TableField("SCHEDULEDCOMPLETIONDATE")
    private Date scheduledcompletiondate;

    @ApiModelProperty(value = "オーダ完了日")
    @TableField("COMPLETEDDATE")
    private Date completeddate;

    @ApiModelProperty(value = "オーダ・クローズ日付")
    @TableField("CLOSEDDATE")
    private Date closeddate;

    @ApiModelProperty(value = "オーダ数量")
    @TableField("STARTQUANTITY")
    private BigDecimal startquantity;

    @ApiModelProperty(value = "完了済み数量")
    @TableField("COMPLETEDQUANTITY")
    private BigDecimal completedquantity;

    @ApiModelProperty(value = "廃棄数量")
    @TableField("SCRAPPEDQUANTITY")
    private BigDecimal scrappedquantity;

    @ApiModelProperty(value = "過剰完了・許容範囲タイプ")
    @TableField("OVERCOMPLETIONTOLERANCETYPE")
    private BigDecimal overcompletiontolerancetype;

    @ApiModelProperty(value = "過剰完了-許容範囲値")
    @TableField("OVERCOMPLETIONTOLERANCEVALUE")
    private BigDecimal overcompletiontolerancevalue;

    @ApiModelProperty(value = "購買依頼出力区分")
    @TableField("REQUISITIONOUTPUTTYPE")
    private String requisitionoutputtype;

    @ApiModelProperty(value = "保管場所別ピッキング解除フラグ")
    @TableField("PICKINGRELEASEFLAG")
    private String pickingreleaseflag;

    @ApiModelProperty(value = "製造指示書発行フラグ")
    @TableField("MANUFACTURINGORDERFLAG")
    private String manufacturingorderflag;

    @ApiModelProperty(value = "計画担当者")
    @TableField("PLANNERCODE")
    private String plannercode;

    @ApiModelProperty(value = "グループID")
    @TableField("GROUPID")
    private String groupid;

    @ApiModelProperty(value = "計画担当グループコード")
    @TableField("PLANNERGROUPCODE")
    private String plannergroupcode;

    @ApiModelProperty(value = "共通工順品目コード")
    @TableField("COMMONROUTINGITEMCODE")
    private String commonroutingitemcode;

    @ApiModelProperty(value = "ステータス")
    @TableField("STATUSCODE")
    private BigDecimal statuscode;

    @ApiModelProperty(value = "かんばん番号")
    @TableField("KANBANID")
    private String kanbanid;

    @ApiModelProperty(value = "製造サイクル")
    @TableField("PRODUCTCYCLE")
    private String productcycle;

    @ApiModelProperty(value = "かんばんカードステータス")
    @TableField("CARDSTATUSCODE")
    private String cardstatuscode;

    @ApiModelProperty(value = "かんばん供給ステータス")
    @TableField("SUPPLYSTATUSCODE")
    private String supplystatuscode;

    @ApiModelProperty(value = "1WAY生産かんばん出力処理フラグ")
    @TableField("ONEWAYPRODUCTKANBANOUTPUTFLAG")
    private String onewayproductkanbanoutputflag;

    @ApiModelProperty(value = "完了保管場所コード")
    @TableField("INVENTORYID")
    private String inventoryid;

    @ApiModelProperty(value = "保管場所名称")
    @TableField("INVENTORYNAME")
    private String inventoryname;

    @ApiModelProperty(value = "完了保管場所略称")
    @TableField("SUBINVENTORYSHORTNAME")
    private String subinventoryshortname;

    @ApiModelProperty(value = "在庫組織")
    @TableField("PARTYID")
    private String partyid;

    @ApiModelProperty(value = "在庫組織ID")
    @TableField("PARTYKEYID")
    private BigDecimal partykeyid;

    @ApiModelProperty(value = "営業単位ID")
    @TableField("PARTYKEYCONTEXTID")
    private BigDecimal partykeycontextid;

    @ApiModelProperty(value = "在庫組織名称")
    @TableField("PARTYORGANIZATIONNAME")
    private String partyorganizationname;

    @ApiModelProperty(value = "部門ID")
    @TableField("PARTYDEPARTMENTCODE")
    private BigDecimal partydepartmentcode;

    @ApiModelProperty(value = "営業単位名称")
    @TableField("PARENTORGANIZATIONNAME")
    private String parentorganizationname;

    @ApiModelProperty(value = "組立品目コード")
    @TableField("ITEMID")
    private String itemid;

    @ApiModelProperty(value = "組立品目ID")
    @TableField("ITEMAPPLICATIONOBJECTKEYID")
    private BigDecimal itemapplicationobjectkeyid;

    @ApiModelProperty(value = "組立品目名")
    @TableField("ITEMNAME")
    private String itemname;

    @ApiModelProperty(value = "単位コード")
    @TableField("UNITOFMEASURECODE")
    private String unitofmeasurecode;

    @ApiModelProperty(value = "棚番")
    @TableField("LOCATORNUMBER")
    private String locatornumber;

    @ApiModelProperty(value = "形式")
    @TableField("FORM")
    private String form;

    @ApiModelProperty(value = "仕様")
    @TableField("SPECIFICATION")
    private String specification;

    @ApiModelProperty(value = "品目摘要詳細")
    @TableField("DETAIL")
    private String detail;

    @ApiModelProperty(value = "CO伝票NO")
    @TableField("CO_SLIP_NO")
    private String coSlipNo;

    @ApiModelProperty(value = "ロット管理コード")
    @TableField("LOTCONTROLCODE")
    private BigDecimal lotcontrolcode;

    @ApiModelProperty(value = "ピッキング担当者")
    @TableField("PICKINGCONTACT")
    private String pickingcontact;

    @ApiModelProperty(value = "背番号")
    @TableField("BACKNUMBER")
    private String backnumber;

    @ApiModelProperty(value = "改正符号")
    @TableField("REVISIONSIGN")
    private String revisionsign;

    @ApiModelProperty(value = "ロット番号")
    @TableField("LOTNUMBERCODE")
    private String lotnumbercode;

    @ApiModelProperty(value = "カテゴリ・セットID")
    @TableField("ITEMCATEGORYID")
    private BigDecimal itemcategoryid;

    @ApiModelProperty(value = "カテゴリ・セット名")
    @TableField("ITEMCATEGORYNAME")
    private String itemcategoryname;

    @ApiModelProperty(value = "統計カテゴリコード")
    @TableField("STATISTICSITEMCATEGORYCODE")
    private String statisticsitemcategorycode;

    @ApiModelProperty(value = "形")
    @TableField("STATISTICSFAMILY")
    private String statisticsfamily;

    @ApiModelProperty(value = "式")
    @TableField("STATISTICSFAMILYDETAIL")
    private String statisticsfamilydetail;

    @ApiModelProperty(value = "機種グループカテゴリコード")
    @TableField("MODELITEMCATEGORYCODE")
    private String modelitemcategorycode;

    @ApiModelProperty(value = "機種グループ")
    @TableField("MODELITEMTYPEFAMILY")
    private String modelitemtypefamily;

    @ApiModelProperty(value = "WIP一括リリースカテゴリコード")
    @TableField("WIPCATEGORYCODE")
    private String wipcategorycode;

    @ApiModelProperty(value = "WP一括リリースカテゴリ")
    @TableField("WIPMASSCATEGORYCODE")
    private String wipmasscategorycode;

    @ApiModelProperty(value = "自工程名称")
    @TableField("SELFOPERATIONNAME")
    private String selfoperationname;

    @ApiModelProperty(value = "外装")
    @TableField("FINISH")
    private String finish;

    @ApiModelProperty(value = "材質")
    @TableField("MATERIAL")
    private String material;

    @ApiModelProperty(value = "保税フラグ")
    @TableField("BOUNDFLAG")
    private String boundflag;

    @ApiModelProperty(value = "製造オーダ名")
    @TableField("ORDERNAME")
    private String ordername;

    @ApiModelProperty(value = "製造部署ID")
    @TableField("MFGSTID")
    private String mfgstid;

    @ApiModelProperty(value = "オーダー・タイプ")
    @TableField("ORDERTYPE")
    private String ordertype;

    @ApiModelProperty(value = "処理フラグ")
    @TableField("PROCESSFLAG")
    private String processflag;

    @ApiModelProperty(value = "欠品サイン")
    @TableField("SHORTAGEFLAG")
    private String shortageflag;

    @ApiModelProperty(value = "備考")
    @TableField("NOTES")
    private String notes;

    @ApiModelProperty(value = "レコード作成者ID")
    @TableField("CREATED_BY")
    private String createdBy;

    @ApiModelProperty(value = "レコード作成日時")
    @TableField(fill = FieldFill.INSERT)
    private Date createTimestamp;

    @ApiModelProperty(value = "レコード更新者ID")
    @TableField("UPDATED_BY")
    private String updatedBy;

    @ApiModelProperty(value = "レコード更新日時")
    @TableField("UPDATE_TIMESTAMP")
    private Date updateTimestamp;


}
